LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
sct/decode/videodec.cpp \
sct/decode/audiodec.cpp \
sct/decode/decodeinterface.cpp \
sct/encode/videoenc.cpp \
sct/encode/audioenc.cpp \
sct/encode/encodeinterface.cpp \

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/ \
    $(NDK)/sources/cxx-stl/gnu-libstdc++/4.8/include/ \
	$(NDK)/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include/ \
	$(linphone-root-dir)/libsct/ \
	$(LOCAL_PATH)/lib/include \



LOCAL_SHARED_LIBRARIES := \

LOCAL_MODULE:= libcodec
LOCAL_LDLIBS += -lgnustl_shared

LOCAL_CFLAGS := -O2 -g -W -Wall -D__STDC_CONSTANT_MACROS
LOCAL_CPPFLAGS +=  -O2 -fexceptions

LOCAL_LDFLAGS += \
-L$(LOCAL_PATH)/lib/lib -lavcodec -lavutil -lswscale -lswresample -lavformat -lsct -L$(APP_PROJECT_PATH)/libs/armeabi-v7a/ -L$(LOCAL_PATH)/x264-install/lib -lx264 \
-L$(LOCAL_PATH)/fdk-aac-install/lib -lfdk-aac -L$(LOCAL_PATH)/opencore-amr-install/lib -lopencore-amrnb
#-L$(LOCAL_PATH)/faac-install/lib -lfaac


include $(BUILD_SHARED_LIBRARY)












